<<<<<<< .mine
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicUniversityBiz
{
    public class OrderControl
    {
        private EFFascade fascade = new EFFascade();

        public List<Catelogue> getCatelogueUnderReorderLevel()
        {
            return fascade.getCatelogueItemsUnderReorderLevel();
        }

        public List<string> getSupplierNames()
        {
            return fascade.getSuppliersNames();
        }

        public List<Catelogue> getStationeryItemsSupplierdBy(string name)
        {
            string supCode = fascade.getSupplierIDBy(name);
            return fascade.getStationeryItemsSuppliedBy(supCode);
        }

        public string getSupplierIDOf(string name)
        {
            return fascade.getSupplierIDBy(name);
        }

        public void orderStationeryItems(Purchse_Order po)
        {
            fascade.recorePurchaseOrder(po);
        }

        public int getReorderQtyOf(string itemcode)
        {
            return fascade.getReorderQuantityOf(itemcode);
        }

        public int getCurrentBalanceOf(string itemcode)
        {
            return fascade.getCurrentBalanceOf(itemcode);
        }

        public decimal getUnitPriceOf(string itemCode)
        {
            return fascade.getUnitPriceOf(itemCode);
        }

        public List<int> getPurchaseOrderNoNotDelievered()
        {
            return fascade.getPurchaseOrderNoNotDelievered();
        }

        public List<RequisitionWithItemDetails> getOrderItemsDetails(int po)
        {
            return fascade.getOrderItemsDetails(po);
        }

        public void addPurchaseOrderDelivery(Delivery_Order delivery)
        {
            fascade.recordPurchaseOrderDelivery(delivery);
            fascade.updateStockCard(delivery);
        }
    }
}
=======
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogicUniversityBiz
{
    public class OrderControl
    {
        private EFFascade fascade = new EFFascade();

        public List<Catelogue> getCatelogueUnderReorderLevel()
        {
            return fascade.getCatelogueItemsUnderReorderLevel();
        }

        public List<string> getSupplierNames()
        {
            return fascade.getSuppliersNames();
        }

        public List<Catelogue> getStationeryItemsSupplierdBy(string name)
        {
            string supCode = fascade.getSupplierIDBy(name);
            return fascade.getStationeryItemsSuppliedBy(supCode);
        }

        public string getSupplierIDOf(string name)
        {
            return fascade.getSupplierIDBy(name);
        }

        public void orderStationeryItems(Purchse_Order po)
        {
            fascade.recorePurchaseOrder(po);
        }

        public int getReorderQtyOf(string itemcode)
        {
            return fascade.getReorderQuantityOf(itemcode);
        }

        public int getCurrentBalanceOf(string itemcode)
        {
            return fascade.getCurrentBalanceOf(itemcode);
        }

        public decimal getUnitPriceOf(string itemCode)
        {
            return fascade.getUnitPriceOf(itemCode);
        }
    }
}
>>>>>>> .r28
